<div class="layui-form-item">
    <div class="layui-form-item">
        <label class="layui-form-label">{{$label}}</label>
        <div class="layui-input-block">
            <script type="text/plain" id="{{$name}}" name="{{$name}}" style="width:100%;height:550px;">{{$value|raw}}</script>
        </div>
    </div>
</div>
<script type="text/javascript" src="/H-UI/lib/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/H-UI/lib/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" src="/H-UI/lib/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
    $(function () {
        UE.getEditor("{{$name}}", {
            toolbars: [[ 'fullscreen', 'source', '|', 'undo', 'redo', '|',
                'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
                'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
                'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
                'directionalityltr', 'directionalityrtl', 'indent', '|',
                'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
                'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
                'simpleupload', 'emotion',  'attachment', 'map', 'insertframe', 'insertcode', 'pagebreak', 'template', 'background', '|',
                'horizontal', 'date', 'time', 'spechars', 'snapscreen', 'wordimage', '|',
                'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', 'charts', '|',
                'print', 'preview', 'searchreplace', 'drafts', 'help'
            ]],
            autoHeightEnabled: true,
            autoFloatEnabled: true,
        })
    })
</script>
